home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-07-22 | 1.1 KB | 55 lines | [TEXT/TCEd] |
- #
- # Header
- #
- # Last Modified: Friday, June 27, 1991 at 11:46 PM
- # Macro Files for Preditor
- #
- # Insert a "Template Header" for a:
- # C source file - Header("source")
- # C function - Header("func")
- #
- # You can modify the file 'Template Header' to create header
- # information in the format you like.
- #
- # © Copyright Evatac Software 1988-1991
- # All rights reserved
- #
-
- CurrentActive = ~Active
-
- Open(~Preditor + ":Macros:Template Header", "r")
- Select(∞, "Template Header")
-
- If (~1 == "source")
- Copy(«13:•, "Template Header")
- Else
- Copy(«12:∞, "Template Header")
- End
- Close("y", "Template Header")
-
- Activate("", CurrentActive)
- If (~1 == "source")
- Select(•, ~Active)
- Else
- Select([§]≥0, ~Active)
- End
-
- Mark("y", §, "_xx_", ~Active)
- Paste(§, ~Active)
- Select([@"_xx_"]≤0, ~Active)
-
- If (~1 == "source")
- Search("", "<filename>", NULL, ~Active)
- Insert(~Active, §, ~Active)
-
- Search("", "<your name>", NULL, ~Active)
- Insert(~User, §, ~Active)
-
- Search("", "<create date>", NULL, ~Active)
- Insert(Date("m", 3, ~Active), §, ~Active)
- Else
- Select([@"_xx_"]≥0, ~Active)
- End
-
- Unmark("", "_xx_", ~Active)
-